var Model = require("../../../model/Model");
var CardUtil = require("../../../util/CardUtil");
module.exports = function(app) {
    return new Handler(app);
};

var Handler = function(app) {
    this.app = app;
    this.channelService = app.get("channelService");
};

Handler.prototype.chat = function(msg, session, next) {
    var uid = session.uid;
    var channel = this.channelService.getChannel("chatworld");
    channel.pushMessage("push", {chat:{uid:uid, msg:msg}});
    next(null, {ret:0});
};
